package com.cn.wanxi.springsecurity.controller;

import com.cn.wanxi.springsecurity.domain.User;
import com.cn.wanxi.springsecurity.domain.model.ResultModel;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LoginController
 * @Description TODO
 * @Author JiJiang
 * @Date 2022/9/26 19:07
 * @Version 1.0
 */

@RestController
@CrossOrigin
public class LoginController {


//    @PostMapping("/login")
//    public ResultModel login(User user) {
//
//        return ResultModel.getResult(user);
//    }

    @GetMapping("/logout")
    public ResultModel logout() {
        return null;
    }


    @PostMapping("/register")
    public ResultModel register() {

        return null;
    }

}
